<?php
/**
 * @Copyright: (C)2021 BJYHYY Inc. All Rights Reserved.
 * @Author: xuzy
 * @Date: 2021/11/15 21:11
 */

namespace App\Model;
use Illuminate\Database\Eloquent\Model;

class Users extends Model
{
   protected $table = 'users';

   public static function getPwd($str)
   {
       return md5(env('APP_KEY').md5($str));
   }

   public static function buildTolen($id)
   {
       return  md5(time().rand(0,9999).$id);
   }
}